<template>
    <div class="wrapper">
        <transition name="move" mode="out-in">
            <keep-alive :include="tagsList">
                <router-view></router-view>
            </keep-alive>
        </transition>
        <div style="width:100%;height:58px;"></div>
        <Footer></Footer>
    </div>
</template>
<script>
    import Footer from './Footer.vue';
    export default {
        data(){
            return {
                tagsList:[]
            }
        },
        components:{Footer},
        created(){
            // 检查登录情况
            const role = localStorage.getItem('userinfo');
            if(!role){
                this.toPage('/login');
            }
        }
    }
</script>
